<?php

class Application_Model_Messages extends Asd_Model {
    
    public function __construct($id = null) {
        parent::__construct(new Application_Model_DbTable_Messages(), $id);
    }
    
    public function getMessages($id) {
       return $this->_dbTable->fetchAll($this->_dbTable->select()
                ->from('messages')
                ->where('user_id = ?', $id));
    }
}

